package site.yunnong.atvris.portal.spider.haokan;

import com.geccocrawler.gecco.annotation.*;
import com.geccocrawler.gecco.spider.HtmlBean;
import lombok.Data;
import site.yunnong.atvris.portal.spider.AbstractVideoObject;

/**
 * @author zjh
 * @date 2021/8/31 11:36
 */
@Data
@Gecco(matchUrl = "https://haokan.baidu.com/v?vid={vid}", pipelines = "haokanVideoPipeline")
public class HaokanVideo extends AbstractVideoObject implements HtmlBean {
    
    @HtmlField(cssPath = "script")
    private String script;
    
    @RequestParameter
    private String duration;
    
    @RequestParameter
    private String cover;
    
    @RequestParameter 
    private String title;
    
    @RequestParameter
    private String pid;
    
    @RequestParameter
    private String partitionName;
    
    @RequestParameter
    private String source;
    
    @RequestParameter
    private String url;
    
}
